package com.regentsoft.cloudback.operateAdmin.service;

import com.regentsoft.cloudback.operateAdmin.entity.ActivationSubCode;
import com.regentsoft.cloudback.vo.req.ActivationSubCodeReq;
import com.regentsoft.cloudback.vo.req.CompanyActivationQueryReq;
import com.regentsoft.cloudback.vo.resp.CompanyActivationQueryResp;

import java.util.List;

/**
 * Created by work on 2017/11/30.
 *
 * @author lumr
 */
public interface ActivationSubCodeService {
    /**
     * 生成子激活码并保存到数据库
     *
     * @param companyId
     * @param from 从form多少开始,包括from
     * @param to 到to结束，不包括to
     * @param ActivateCode
     * @return
     */
    boolean generatorSubCode(String companyId, int from,int to, String ActivateCode, String creator);

    CompanyActivationQueryResp getSubCode(CompanyActivationQueryReq queryReq);

    boolean changSubCodeStatus(ActivationSubCodeReq req);
    
    int getTotalCount(String code);

}
